// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProductTaskProcessId',
        footer: "Foots",
        cnName: '生产任务工序明细',
        name: 'ProductTaskProcess',
        newTabEdit: false,
        url: "/ProductTaskProcess/",
        sortName: "ProcessSeq"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProcessCode":"","ProcessSeq":"","ProcessName":"","ProcessTypeId":"","DepartmentId":[],"IsDipathc":"","IsOutSource":"","SupplyId":"","ReportWorkTypeId":"","DeviceId":"","ProductionGroupId":"","WorkerId":[],"ProductNoticeNo":"","IsChecked":""};
    const editFormOptions = [[{"title":"工序编码","required":true,"field":"ProcessCode","type":"text"},
                               {"title":"工序序号","required":true,"field":"ProcessSeq","type":"number"},
                               {"title":"工序名称","required":true,"field":"ProcessName","disabled":true,"type":"text"},
                               {"dataKey":"工序类型","data":[],"title":"工序类型","required":true,"field":"ProcessTypeId","disabled":true,"type":"select"},
                               {"dataKey":"部门级联","data":[],"title":"部门","required":true,"field":"DepartmentId","type":"cascader"},
                               {"dataKey":"是否","data":[],"title":"启用派工","required":true,"field":"IsDipathc","type":"select"},
                               {"dataKey":"是否","data":[],"title":"是否委托","field":"IsOutSource","type":"select"},
                               {"dataKey":"供应商档案","data":[],"title":"委托供应商","field":"SupplyId","type":"select"},
                               {"dataKey":"报工方式","data":[],"title":"报工方式","required":true,"field":"ReportWorkTypeId","type":"select"},
                               {"dataKey":"设备档案下拉table","data":[],"title":"生产设备","field":"DeviceId","type":"select"},
                               {"dataKey":"班组信息","data":[],"title":"班组","field":"ProductionGroupId","type":"select"},
                               {"dataKey":"职员","data":[],"title":"作业人员","field":"WorkerId","type":"selectList"},
                               {"title":"生产通知单编号","field":"ProductNoticeNo","type":"text"},
                               {"dataKey":"是否","data":[],"title":"是否质检","required":true,"field":"IsChecked","type":"select"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'ProductTaskProcessId',title:'生产任务工序标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'ProductProcessId',title:'工序标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'ProcessCode',title:'工序编码',type:'string',width:110,require:true,align:'left'},
                       {field:'ProcessSeq',title:'工序序号',type:'int',width:110,require:true,align:'left'},
                       {field:'ProcessName',title:'工序名称',type:'string',width:110,readonly:true,require:true,align:'left'},
                       {field:'ProcessTypeId',title:'工序类型',type:'int',bind:{ key:'工序类型',data:[]},width:110,readonly:true,require:true,align:'left'},
                       {field:'IsLasted',title:'是否末道工序',type:'int',bind:{ key:'是否',data:[]},width:80,require:true,align:'left'},
                       {field:'DepartmentId',title:'部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,require:true,align:'left'},
                       {field:'IsDipathc',title:'启用派工',type:'int',bind:{ key:'是否',data:[]},width:110,require:true,align:'left'},
                       {field:'IsOutSource',title:'是否委托',type:'int',bind:{ key:'是否',data:[]},width:110,align:'left'},
                       {field:'SupplyId',title:'委托供应商',type:'int',bind:{ key:'供应商档案',data:[]},width:110,align:'left'},
                       {field:'ReportWorkTypeId',title:'报工方式',type:'int',bind:{ key:'报工方式',data:[]},width:110,require:true,align:'left'},
                       {field:'DeviceId',title:'生产设备',type:'int',bind:{ key:'设备档案下拉table',data:[]},width:110,align:'left'},
                       {field:'ProductionGroupId',title:'班组',type:'int',bind:{ key:'班组信息',data:[]},width:110,align:'left'},
                       {field:'WorkerId',title:'作业人员',type:'int',bind:{ key:'职员',data:[]},width:110,align:'left'},
                       {field:'ProductTaskId',title:'生产任务标识',type:'int',bind:{ key:'生产任务单编号',data:[]},width:80,align:'left'},
                       {field:'ProductNoticeId',title:'生产通知单标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'ProductNoticeNo',title:'生产通知单编号',type:'string',width:120,hidden:true,align:'left'},
                       {field:'IsChecked',title:'是否质检',type:'int',bind:{ key:'是否',data:[]},width:80,require:true,align:'left'},
                       {field:'WorkHourPrice',title:'计时单价',type:'decimal',width:110,require:true,align:'left'},
                       {field:'WorkQtyPrice',title:'计件单价',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PriceTypeId',title:'计价方式',type:'int',bind:{ key:'计价方式',data:[]},width:80,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}